//
//  ShoppingProofCell.swift
//  物料商行
//
//  Created by HaoDong Hong on 2017/9/26.
//  Copyright © 2017年 HaoDong Hong. All rights reserved.
//

import UIKit

class ShoppingProofCell: UITableViewCell {
    
    @IBOutlet weak var nameLabel: UILabel!
    @IBOutlet weak var colorLabel: UILabel!
    @IBOutlet weak var numLabel: UILabel!
    @IBOutlet weak var unitPriceLabel: UILabel!
    @IBOutlet weak var allPriceLabel: UILabel!
    @IBOutlet weak var bkView: UIView!

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setHighlighted(_ highlighted: Bool, animated: Bool) {
        if highlighted {
            UIView.animate(withDuration: 1.0, animations: {
                self.bkView.backgroundColor = #colorLiteral(red: 0.5726983547, green: 0.565235734, blue: 0.09885739535, alpha: 1)
            })
        } else {
            UIView.animate(withDuration: 1.0, animations: {
                self.bkView.backgroundColor = #colorLiteral(red: 0.9702997804, green: 0.7301810384, blue: 0.4032307565, alpha: 1)
            })
        }
    }
    
}
